from server.schemas.BaseSchema import BaseSchema


class SystemErrors(BaseSchema):
    """
    系统错误响应模型
    """
    code: int = 1500
    msg: str = "系统错误"


class WriteResponse(BaseSchema):
    """
    正常的添加、更新、删除响应模型
    """
    code: int = 200
    msg: str = "操作成功"


class ArgError(BaseSchema):
    code: int = 1503
    msg: str = "参数错误"


class NotExistError(BaseSchema):
    code: int = 1404
    msg: str

class AlreadyExistError(BaseSchema):
    code: int = 1400
    msg: str